package com.lihao.sam.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author Qinheyun
 * @Description: 公寓报修处理表
 */
@Data
@NoArgsConstructor
public class ApartmentRepaired {
    /**
     * 序号
     */
    private Integer id;

    /**
     * 审批人
     */
    private String personApproval;

    /**
     * 是否批准  0是   1否
     */
    private Integer approval;

    /**
     * 审批时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date approvalTime;

    public ApartmentRepaired(String personApproval, Integer approval) {
        this.personApproval = personApproval;
        this.approval = approval;
    }
}